package com.forekenow.work0723;

public class Person {
    private String name;
    private double cm;
    private double weight;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getCm() {
        return cm;
    }

    public void setCm(double cm) {
        this.cm = cm;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }

    public Person(String name, double cm, double weight){
        this.name=name;
        this.cm=cm;
        this.weight=weight;
    }
    public void  show(){
        System.out.println("Hello My name is \t"+name+"\nHello My shengao is\t"+cm+"\nHello My weight is\t"+weight);

    }

    public static void main(String[] args) {
        Person person1 = new Person("zhangsan",190,89);
        Person person2 = new Person("lishi",180,67);
        person1.show();
        person2.show();
    }
}
